package com.z.dao;



import com.z.pojo.Cart;
import com.z.pojo.Order;

import java.sql.SQLException;
import java.util.List;

public interface OrderDao {
    public Integer addOrder(Order order) throws SQLException;
    public Integer addOrderItem(Cart cart, String oid)throws SQLException;
    public Order findOrderByOid(String oid) throws SQLException;
    public List<Order> findOrderByUid(String uid) throws SQLException;
    public List<Cart> findOrderItemByOid(String oid) throws SQLException;
    public Integer updateOrderByOid(String oid, Integer aid) throws SQLException;
}
